import { defineStore } from "pinia";
import { Ref, ref } from "vue";
import { configType } from "../components/type";

export const useApptore = defineStore(
  "app",
  () => {
    const configFrom: Ref<configType[]> = ref([]);
    const isExecuteConfigId = ref("");
    const luckyBagExecutionTime = ref("");
    return {
      configFrom,
      isExecuteConfigId,
      luckyBagExecutionTime,
    };
  },
  {
    persist: true,
  }
);
